package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWorkflowMapper;
import com.ruoyi.system.domain.SysWorkflow;
import com.ruoyi.system.service.ISysWorkflowService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-31
 */
@Service
public class SysWorkflowServiceImpl implements ISysWorkflowService 
{
    @Autowired
    private SysWorkflowMapper sysWorkflowMapper;

    /**
     * 查询用户信息
     * 
     * @param workflowId 用户信息主键
     * @return 用户信息
     */
    @Override
    public SysWorkflow selectSysWorkflowByWorkflowId(Long workflowId)
    {
        return sysWorkflowMapper.selectSysWorkflowByWorkflowId(workflowId);
    }

    /**
     * 查询用户信息列表
     * 
     * @param sysWorkflow 用户信息
     * @return 用户信息
     */
    @Override
    public List<SysWorkflow> selectSysWorkflowList(SysWorkflow sysWorkflow)
    {
        return sysWorkflowMapper.selectSysWorkflowList(sysWorkflow);
    }

    /**
     * 新增用户信息
     * 
     * @param sysWorkflow 用户信息
     * @return 结果
     */
    @Override
    public int insertSysWorkflow(SysWorkflow sysWorkflow)
    {
        return sysWorkflowMapper.insertSysWorkflow(sysWorkflow);
    }

    /**
     * 修改用户信息
     * 
     * @param sysWorkflow 用户信息
     * @return 结果
     */
    @Override
    public int updateSysWorkflow(SysWorkflow sysWorkflow)
    {
        return sysWorkflowMapper.updateSysWorkflow(sysWorkflow);
    }

    /**
     * 批量删除用户信息
     * 
     * @param workflowIds 需要删除的用户信息主键
     * @return 结果
     */
    @Override
    public int deleteSysWorkflowByWorkflowIds(String workflowIds)
    {
        return sysWorkflowMapper.deleteSysWorkflowByWorkflowIds(Convert.toStrArray(workflowIds));
    }

    /**
     * 删除用户信息信息
     * 
     * @param workflowId 用户信息主键
     * @return 结果
     */
    @Override
    public int deleteSysWorkflowByWorkflowId(Long workflowId)
    {
        return sysWorkflowMapper.deleteSysWorkflowByWorkflowId(workflowId);
    }
}
